﻿using System;
using NGridDrawer.Partitions;
using NGridDrawer.Report.Layout;

namespace NGridDrawer.Report
{
    /// <LastUpdate author="Blaise Braye" Date="29/07/2008 14:59"/>
    /// <summary>
    /// 	<see cref="T:NGridDrawer.Report.RowRequestedBlockEventArgs"/> 
    /// contains data for the RowRequestedBlock events, useful to attach comments to grid's data </summary>
    public class RowRequestedBlockEventArgs : EventArgs
    {
        /// <summary>
        /// 	<para>Initializes an instance of the <see cref="RowRequestedBlockEventArgs"/> class.</para>
        /// </summary>
        /// <param name="partitionColumn">current <paramref name="partitionColumn"/> in the grid
        /// </param>
        /// <param name="rowIndex">current row index in the grid
        /// </param>
        public RowRequestedBlockEventArgs(PartitionColumn partitionColumn, int rowIndex)
        {
            PartitionColumn = partitionColumn;
            RowIndex = rowIndex;
        }

        /// <summary>Get PartitionColumn Property</summary>
        public PartitionColumn PartitionColumn { get; private set; }

        /// <summary>Get RowIndex Property</summary>
        public int RowIndex { get; private set; }

        /// <summary>Get/Set AttachedToRow Property</summary>
        public IBlock AttachedToRow { get; set; }

        /// <summary>Get/Set ColIndex Property</summary>
        public int ColIndex { get; set; }
    }
}